# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
    ['gui_app.py'],
    pathex=['.'],
    binaries=[],
    datas=[],
    hiddenimports=[
        'win32com.client',
        'win32api',
        'win32con',
        'win32gui',
        'pywintypes',
        'comtypes',
        'comtypes.client',
        'uiautomation',
        'flask',
        'flask_cors',
        'pyperclip',
        'oss2',
        'aliyunsdkcore',
        'aliyunsdkkms',
        'psutil',
        'requests',
        'cv2',
        'PIL',
        'pymediainfo',
        'pyautogui',
        'imageio',
        'numpy',
        # 本地模块
        'config_manager',
        'service_controller',
        'log_viewer',
        'oss_uploader',
        'workflow_manager',
        'export_controller',
        'jianying_helper_controller',
        'draft_automation_service',
        'com_thread_manager',
        'task_dispatcher',
        'scheduler_connector',
        'worker_client',
    ],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    noarchive=False,
)

pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.zipfiles,
    a.datas,
    [],
    name='剪映草稿自动化工具',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,  # 不显示命令行窗口
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon=None,  # 如果有图标文件,可以在这里指定路径
)